# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:~/bin/bash:~/bin/perl:"${PATH}"
fi

# Set colorscheme (or set default)
if [ -f ~/dotfiles/bash/colorscheme ]; then
    source ~/dotfiles/bash/colorscheme
else
    COLORSCHEME="color"
fi

# Now, setup display environment
# irssi, screen, xdefaults, mutt
if [ $COLORSCHEME = "black" ]; then
    ln -sf ~/dotfiles/screen/screenrc.mono ~/.screenrc
    ln -sf ~/dotfiles/X/Xdefaults.mono .Xdefaults
    ln -sf  ~/.irssi/mono.theme  ~/.irssi/xterminus.theme
elif [ $COLORSCHEME = "white" ]; then
    ln -sf ~/dotfiles/screen/screenrc.mono ~/.screenrc
    ln -sf ~/dotfiles/X/Xdefaults.mono .Xdefaults
    ln -sf  ~/.irssi/mono.theme  ~/.irssi/xterminus.theme
else
    ln -sf ~/dotfiles/screen/screenrc.color ~/.screenrc
    ln -sf ~/dotfiles/X/Xdefaults.color .Xdefaults
    ln -sf  ~/.irssi/color.theme  ~/.irssi/xterminus.theme
fi

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# Music Player Daemon Defaults
MPD_HOST=redbox.mauch.name
MPD_PORT=6600

# History Controls
HISTCONTROL=ignoredups # Ignore duplicate entries in history
IGNOREEOF=10	       # Disable Clt-D exits
PILOTPORT="/dev/tts/USB1"
CVS_RSH="ssh"
EDITOR="/usr/bin/vim"
PERL5LIB="/home/cpm/perl"

export PATH MANPATH MPD_HOST MPD_PORT HISTCONTROL IGNOREEOF COLORSCHEME PILOTPORT CVS_RSH EDITOR PERL5LIB

source ~/.bashrc
